#ifndef LOGINDIALOG_H
#define LOGINDIALOG_H

#include <QDialog>

namespace Ui {
    class loginDialog;
}

class loginDialog : public QDialog
{
    Q_OBJECT

public:
    explicit loginDialog(QWidget *parent = 0);
    ~loginDialog();
    QString getUser();
    QString getPassword();

signals:
    void loginSucceed(QString userName,QString password);

private slots:
    void login();
    void readSettings();
    void writeSettings();

protected:
    void closeEvent(QCloseEvent * event);

private:
    Ui::loginDialog *ui;
    QString user;
    QString password;
};

#endif // LOGINDIALOG_H
